using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class FadBetweenScene : MonoBehaviour
{
    //public Animator animator;
    //private void Update()
    //{
    //    if (Input.GetMouseButtonDown(0))
    //    {
    //        animator.SetTrigger("FadeOut");
    //    }
    //}
    public void FadeToNextLevel()
    {
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
    }

    public void OnFadeComplete()
    {
        FadeToNextLevel();
    }
}
